
package guoan.repository;

import java.util.List;

import guoan.domain.Keyword;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface KeywordRepository extends PagingAndSortingRepository<Keyword, Long>, JpaSpecificationExecutor<Keyword> {

    List<Keyword> findByKeyInfoAndKeyInfoId(String keyName_info, Long id);

    Keyword findTop1ByKeyName(String keyName);

    List<Keyword> findTop9ByKeyName(String keyName);


}
